package com.zyj.guava.bimap;

import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;

public class BimapSample {

    public static void main(String[] args) {
        BiMap<Integer, String> 业主名单 = HashBiMap.create();
        业主名单.put(101, "李云龙");
        业主名单.put(102, "常熟阿诺");
        业主名单.put(201, "肖战");
        业主名单.put(202, "丁真");
        业主名单.put(301, "加州盛亦陶");
        System.out.println(业主名单.get(102));
        System.out.println(业主名单.inverse().get("丁真"));
    }
}